//
//  XWebViewController.h
//  yongfatouzi
//
//  Created by Hongshuo Xiao on 2017/12/30.
//  Copyright © 2017年 YFTZCompany. All rights reserved.
//

#import "BasicViewController.h"
#import <WebKit/WebKit.h>
#import "NBLWebViewHeader.h"
#import "NBLMessage.h"

@interface XWebViewController : BasicViewController<WKScriptMessageHandler>
{
    UIButton *btnSave;
    UIButton *_btnSubmit;
}

@property(nonatomic,strong)NSString *type;   //列表分割线
@property(nonatomic,strong)NSString *typeNot;   //列表分割线
@property(nonatomic,strong)NSString *key_id;

@property (nonatomic, strong) WKWebView *webView;

@property (nonatomic, strong, readonly) NBLMessage *message;

- (instancetype)initWithURLString:(NSString *)urlString;

- (instancetype)initWithURL:(NSURL *)url;

- (instancetype)initWithRequest:(NSURLRequest *)request;

- (instancetype)initWithHTMLString:(NSString *)string baseURL:(NSURL *)baseURL;

//for subclass

- (void)registerMessageHandler;

- (BOOL)dealWithMessage:(WKScriptMessage *)message;

@end
